<%@ page language="java" pageEncoding="utf-8" %>
<%@ page import="java.util.List" %>
<%@ page import="com.wc.pojo.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <meta charset="utf-8">
    <title>树</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/datetimepicker/css/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/tree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/dist/bootstrap-select.min.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/css/reveal.css"/>


    <script src="${pageContext.request.contextPath}/statics/js/jquery.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/bootstrap/js/bootstrap.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="${pageContext.request.contextPath}/statics/dist/bootstrap-select.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/datetimepicker/js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="${pageContext.request.contextPath}/statics/tree/js/jquery.ztree.core.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/tree/js/jquery.ztree.excheck.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/tree/js/jquery.ztree.all.min.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/js/tree/select.js" type="text/javascript" charset=utf-8></script>
    <script src="${pageContext.request.contextPath}/statics/js/tree/tree.js" type="text/javascript" charset=utf-8></script>


</head>
    <body>
    <div class="container">
        <div class="row clearfix">
            <div class="col-md-4">
                <ul id="tree" class="ztree"></ul>
            </div>
            <div id="add" class="col-md-2">
                <a class="btn btn-info" href="#modal-container" data-toggle="modal" onclick="getAddemodal()">添加</a>
            </div>
            <div id="update" class="col-md-2"></div>
            <div class="col-md-4">
                <a class="btn btn-info" onclick="getFind()">已授权项目查询</a>
                <a class="btn btn-info" onclick="getUn()">项目查询</a>
            </div>
        </div>
    <div class="row clearfix">
        <%-- 数据展示 --%>
        <table class="table table-bordered">
            <thead id="thead_data">
            </thead>
            <tbody id="tbody_data">
            </tbody>
        </table>
    </div>


    <div class="modal fade" id="modal-container" tabindex="-1"
         role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
             style="display: none;">
            <div class="modal-dialog" >
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"
                                aria-hidden="true">×
                        </button>
                        <h4 class="modal-title" id="myModalLabel"></h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group select_bm">
                            <label>选择添加到指定节点下</label>
                            <select class="selectpicker" data-width="318px" id="slpk"></select>
                        </div>
                        <span id="error_xm_text"></span>
                        <div id="add_text" style="display: none">
                            <div class="form-group xmNames_text">
                                <label for="xmNames" >项目名称</label>
                                <input type="text" class="form-control" id="xmNames"
                                       placeholder="项目名称" value="" name="xmNames">
                                <span id="xmNames_text"></span>
                            </div>
                            <div class="form-group xmDm_text">
                                <label for="xmDm" >项目代码</label>
                                <input type="text" id="xmDm" class="form-control"
                                       placeholder="项目代码" name="xmDm">
                                <span id="xmDm_text"></span>
                            </div>
                            <div class="form-group xmId_text">
                                <label for="xmId" >项目ID</label>
                                <input type="hidden" id="xmId" class="form-control"
                                       placeholder="项目ID" name="xmId">
                            </div>
                            <div class="form-group xmOwnerid_text">
                                <label for="xmOwnerid" >项目负责人ID</label>
                                <input type="text" id="xmOwnerid" class="form-control"
                                       placeholder="项目负责人ID" name="xmOwnerid">
                                <span id="xmOwnerid_text"></span>
                            </div>
                            <div class="form-group">
                                <label for="xmJea">项目金额A</label>
                                <input type="number" id="xmJea" class="form-control"
                                       placeholder="项目金额A" value="" name="xmJea">
                            </div>
                            <div class="form-group">
                                <label for="xmJezb" >项目金额B</label>
                                <input type="number" id="xmJezb" class="form-control"
                                       placeholder="项目金额B" value="" name="xmJezb">
                            </div>
                            <div class="form-group">
                                <label for="xmJejc" >项目金额C</label>
                                <input type="number" id="xmJejc" class="form-control"
                                       placeholder="项目金额C" value="" name="xmJejc">
                            </div>
                            <div class="form-group xmTime_text">
                                <label for="dtp_input3" class="control-label">创建时间</label>
                                <div class="input-group date form_datetime" data-date="" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input3">
                                    <input name="xmTime" class="form-control" size="16" type="text" value="" readonly>
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                                    <input type="hidden" id="dtp_input3" value="" />
                                </div>
                            </div>
                            <div class="form-group oldTime_text">
                                <label for="dtp_input1" class="control-label">修改时间</label>
                                <div class="input-group date form_datetime" data-date="" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input1">
                                    <input name="xmOldtime" class="form-control" size="16" type="text" value="" readonly>
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                                    <input type="hidden" id="dtp_input1" value="" />
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="submit" class="form-control btn btn-success btn-sm" value="添加项目" id="submit_xm_add"/>
                                <input type="submit" class="form-control btn btn-success btn-sm" value="修改项目" id="submit_xm_update"/>
                            </div>
                            <div class="form-group az">
                                <input type="button" class="form-control btn btn-success btn-sm" value="授权项目" id="submit_az"/>
                            </div>
                            <span id="error_xm"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
</body>
</html>
